package com.thoughtful.remoting.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author yushun
 * @createTime 2022/10/18 - 10:52
 **/
@Setter
@Getter
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class RpcMessage {

    /**
     * Rpc 消息类型
     */
    private byte messageType;

    /**
     * 序列化类型
     */
    private byte codec;

    /**
     * 压缩类型
     */
    private byte compress;

    /**
     * Rpc 请求 ID
     */
    private int requestId;

    /**
     * 请求体
     */
    private Object data;

}
